package models;

import play.data.validation.Required;
import play.db.jpa.Model;

public class TimeLocation extends Model {

	@Required
	public double longitude;

	@Required
	public double latitude;

	public String address;

	public static TimeLocation empty() {
		TimeLocation retVal = new TimeLocation();
		retVal.longitude = 0;
		retVal.latitude = 0;
		retVal.address = "_Uknown";

		return retVal;
	}

	/*
	 * Not yet implemented, It will idealy look up the preconfigured office
	 * location and return that as a default location.
	 */
	public static TimeLocation getDefault() {
		throw new IllegalStateException();
	}

}
